package com.ct.mappers;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 报销表 数据库操作接口
 */
@Mapper
public interface ReimbursementMapper<T, P> extends BaseMapper<T, P> {

    /**
     * 根据ReimbursementId更新
     */
    Integer updateByReimbursementId(@Param("bean") T t, @Param("reimbursementId") Integer reimbursementId);

    /**
     * 根据ReimbursementId删除
     */
    Integer deleteByReimbursementId(@Param("reimbursementId") Integer reimbursementId);

    /**
     * 根据ReimbursementId获取对象
     */
    T selectByReimbursementId(@Param("reimbursementId") Integer reimbursementId);

    T selectByTravelId(@Param("travelId") Integer travelId);

}
